#续 字典常见操作
#求长度 len()
dic = {"姓名":"Gwen","年龄":17}
print(len(dic))
#返回字典里面所有键名 keys()
print(dic.keys())
#返回字典所有值 values()
print(dic.values())
#返回字典所有键值对 items()
print(dic.items())

#import json
# with open(r"C:\Users\a2038\Desktop\cookies.txt", 'r') as f:
#     res = f.read()
#     print(res)
#     a = res.split("},")
#     print(a.pop())
#     for item in a:
#         item+="}"
#         print(item)
#         c = eval(item)
#         print(c)
#
#
#
#     # res = json.loads(res)
#     # print(type(res))
#     # print(res)
#     # for cookie in res:
#     #     print(cookie)
#     #     browser.add_cookie(cookie)